package com.jmlee.service;

import com.jmlee.pojo.AItemSecKill;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AItemSecKillService {
    /**
     * 获取秒杀商品列表
     * @param rowBounds
     * @param aItemSecKill
     * @return
     */
    List<AItemSecKill> getSecKillItemList(RowBounds rowBounds,AItemSecKill aItemSecKill);

    /**
     * 修改秒杀商品信息（上下架/截止日期）
     * @param aItemSecKill
     * @return
     */
    Integer editSecKillItem(AItemSecKill aItemSecKill);

    /**
     * 新增秒杀商品
     * @param aItemSecKill
     * @return
     */
    Integer addSecKillItem(AItemSecKill aItemSecKill);

    /**
     * 获取总记录数
     * @param aItemSecKill
     * @return
     */
    Long getRecorderCount(AItemSecKill aItemSecKill);
}
